<template>
	<view class="yyWrap">
		<view class="zxsList hasBg"
			v-for="(item,index) in gyList"
			:key="index"
			@tap="goGyDet(item)"
		>
			<view class="header">
				<image class="samePar" mode="aspectFill" v-if="item.userPortrait == ''" :src="defHead"></image>
				<image class="samePar" mode="aspectFill" v-else :src="getCloudFilePath(item.userPortrait)"></image>
			</view>
			<view class="zxsInfo">
				<view class="zxsName spaceBet">
					<view class="alignCen">
						<view class="user">{{item.userName}}</view>
					</view>
					<view class="status wait" v-if="item.gyStatus == 1">待干预</view>
					<view class="status wait" v-if="item.gyStatus == 2">干预中</view>
					<view class="status comp" v-if="item.gyStatus == 3">已完成</view>
				</view>
				<view class="time hasMargTop">测评量表：{{item.cstTitle}}</view>
				<view class="time">测评时间：{{item.csTime}}</view>
				<view class="time" v-if="item.yjLevel == 1">预警等级：<text class="red">红</text></view>
				<view class="time" v-if="item.yjLevel == 2">预警等级：<text class="yellow">黄</text></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			gyList:Array
		},
		data(){
			return{
				defHead:this.defHead
			}
		},
		methods:{
			goGyDet(item){
				this.$emit('goGyDet',item)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.yyWrap{
		padding-top: 20rpx
	}
	@import '../../../../static/scss/zxsList.scss';
</style>